package lesson01;

import java.io.File;
import java.io.IOException;

public class Demo0104 {
    public static void main(String[] args) throws IOException {
        File file=new File("d:/temp/test");
        file.createNewFile();
        //判断文件能否读写
        System.out.println(file.canRead());
        System.out.println(file.canWrite());
    }
}
